// useRouter.js
import { useRouter } from 'vue-router';

export function useRouter() {
  const router = useRouter();

  const goToHome = () => {
    router.push('/');
  };

  const goToDocumentUpload = () => {
    router.push('/document-upload');
  };

  const goToKnowledgeBaseManagement = () => {
    router.push('/knowledge-base-management');
  };

  const goToMemberCenter = () => {
    router.push('/member-center');
  };

  const goToNotificationSettings = () => {
    router.push('/notification-settings');
  };

  const goToOrder = () => {
    router.push('/order');
  };

  const goToPointsManagement = () => {
    router.push('/points-management');
  };

  const goToSecuritySettings = () => {
    router.push('/security-settings');
  };

  const goToUser = () => {
    router.push('/user');
  };

  return {
    goToHome,
    goToDocumentUpload,
    goToKnowledgeBaseManagement,
    goToMemberCenter,
    goToNotificationSettings,
    goToOrder,
    goToPointsManagement,
    goToSecuritySettings,
    goToUser,
  };
}
